package com.randi.common.core.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.web.PageableDefault;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author ziye
 */
@Data
public class BaseParam {

    @ApiModelProperty(value = "关键词")
    private String keyword;

    @ApiModelProperty(value = "当前页数")
    private Integer pageNum;

    @ApiModelProperty(value = "分页条数")
    private Integer pageSize;

    @ApiModelProperty(value = "状态")
    private Integer status;

    @ApiModelProperty(value = "起始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    @ApiModelProperty(value = "截至时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    @ApiModelProperty(value = "删除标志")
    private Integer deleted;

    @ApiModelProperty(value = "包括键值")
    private List<Long> includes;

    @ApiModelProperty(value = "排除键值")
    private List<Long> excludes;

    @ApiModelProperty(value = "创建者")
    private Long createBy;

    @ApiModelProperty(value = "更新者")
    private Long updateBy;

}
